#if !defined(AFX_MCDLGADDPROPERTY_H__E5D7C507_DEE1_4FE2_8864_9D9FFDBC555E__INCLUDED_)
#define AFX_MCDLGADDPROPERTY_H__E5D7C507_DEE1_4FE2_8864_9D9FFDBC555E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// McDlgAddProperty.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// McDlgAddProperty dialog
class McDlgAddProperty : public CDialog
{
// Construction
public:
	McDlgAddProperty(const MsAddr& addr, long typeId, const string& typeName, bool bTemp, CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(McDlgAddProperty)
	enum { IDD = IDD_DIALOG_ADD_PROPERTY };
	CButton	m_btnAdd;
	CComboBox	m_combValueType;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(McDlgAddProperty)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(McDlgAddProperty)
	virtual void OnOK();
	virtual BOOL OnInitDialog();
	afx_msg void OnSelchangeComboValuetype();
	afx_msg void OnRadio2();
	afx_msg void OnRadio3();
	afx_msg void OnRadio4();
	afx_msg void OnRadio5();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()

private:
	MsAddr addr_;
	long typeId_;
	string typeName_;
	bool bTemp_;
	PROPERTY_STYLE propStyle_;
	map<long, string> typeFromatDescs_;
	void set_control_state(bool bNormalProperty);

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MCDLGADDPROPERTY_H__E5D7C507_DEE1_4FE2_8864_9D9FFDBC555E__INCLUDED_)
